home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1091 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.sni.de!news
  2. From: Josef Moellers <mollers.pad@sni.de>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: i = atoi(NULL);
  5. Date: 11 Jan 1996 12:32:09 GMT
  6. Organization: Siemens Nixdorf Informationssysteme AG, Paderborn, Germany
  7. Message-ID: <4d3009$b6f@nervous.pdb.sni.de>
  8. References: <DKwCsG.IGD@cs.openu.ac.il> <96009.103802DSEAMA41@portland.caps.maine.edu>
  9. NNTP-Posting-Host: uranium.pdb.sni.de
  10. X-Newsreader: NN version 6.5.0 #2
  11.  
  12. In <96009.103802DSEAMA41@portland.caps.maine.edu> Starduster <DSEAMA41@portland.caps.maine.edu> writes:
  13.  
  14. >In article <DKwCsG.IGD@cs.openu.ac.il>, shimoco@mail.tlm.openu.ac.il (Shimon
  15. >Cohen) says:
  16.  
  17. >>i = atoi(NULL);
  18.  
  19. >   One question: why does it matter? Why would you want to do such a thing?
  20. >Just curious.
  21.  
  22. You don't "want" to do it, it just happens sometimes.
  23. Usually, you provide atoi with a non-NULL pointer, but sloppy
  24. programming might cause it to do otherwise.
  25.  
  26. Not that I can come up with an example that looks sensible, but then ...
  27. who am I?
  28.  
  29. Happy conversions,
  30.  
  31. Josef
  32. --
  33. Josef Moellers            mollers.pad@sni.de
  34.